var e = require;
var t = module;
var n = exports;
Object.defineProperty(n, "__esModule", {
    value: !0
});
var o = cc._decorator,
i = o.ccclass,
a = o.property,
r = function(e) {
    __extends(t, e);
    function t() {
        var t = null !== e && e.apply(this, arguments) || this;
        t.triggerBtn = null;
        t.triggerBtn2 = null;
        return t
    }
    t.prototype.start = function() {
        var e = this;
        this.triggerBtn.active = !1;
        this.triggerBtn2.active = !1;
        SDK.Mgr.Inst.curChannel == SDK.Define.Channel.oppo ? SDK.Mgr.Inst.isAdOpen && SDK.Mini.OPPO.Extend.Inst.hasBoxAd() && this.schedule(function() {
            SDK.Mini.OPPO.Extend.Inst.boxPortalReady() && (e.triggerBtn.active = !0)
        },
        .3) : SDK.Mgr.Inst.curChannel == SDK.Define.Channel.qq ? this.triggerBtn.active = !0 : SDK.Mgr.Inst.curChannel == SDK.Define.Channel.android_oppo && (this.triggerBtn2.active = !0)
    };
    t.prototype.triggerBtnClick = function() {
        if (SDK.Mgr.Inst.curChannel == SDK.Define.Channel.oppo) {
            if (SDK.Mini.OPPO.Extend.Inst.hasBoxAd()) {
                SDK.Mini.OPPO.Extend.Inst.showBoxPortal();
                this.triggerBtn.active = !1
            }
        } else SDK.Mgr.Inst.curChannel == SDK.Define.Channel.qq ? SDK.Mini.QQ.Extend.Inst.showAppBox() : SDK.Mgr.Inst.curChannel == SDK.Define.Channel.android_oppo && SDK.Mgr.Inst.jump()
    };
    __decorate([a(cc.Node)], t.prototype, "triggerBtn", void 0);
    __decorate([a(cc.Node)], t.prototype, "triggerBtn2", void 0);
    return __decorate([i], t)
} (cc.Component);
n.default = r